package io.wdb.modules.generator.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.wdb.modules.generator.generator.dao.BookGridTransDao;
import io.wdb.modules.generator.generator.entity.BookGridTransEntity;
import io.wdb.modules.generator.generator.service.BookGridTransService;



@Service("bookGridTransService")
public class BookGridTransServiceImpl implements BookGridTransService {
	@Autowired
	private BookGridTransDao bookGridTransDao;
	
	@Override
	public BookGridTransEntity queryObject(Long id){
		return bookGridTransDao.queryObject(id);
	}
	
	@Override
	public List<BookGridTransEntity> queryList(Map<String, Object> map){
		return bookGridTransDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return bookGridTransDao.queryTotal(map);
	}
	
	@Override
	public void save(BookGridTransEntity bookGridTrans){
		bookGridTransDao.save(bookGridTrans);
	}
	
	@Override
	public void update(BookGridTransEntity bookGridTrans){
		bookGridTransDao.update(bookGridTrans);
	}
	
	@Override
	public void delete(Long id){
		bookGridTransDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		bookGridTransDao.deleteBatch(ids);
	}
	
}
